Fixed firewalld-related code in test script