Fixing syntax error in test cases