Correct broken test and syntax error