Syntax error in test code