Better error msg when test case has syntax error

If a file has a syntax error then `result.classpath == undefined` and the error message is not very helpful.