Also, fixed one test file that didn't have its syntax error as the last line.
Includes adding test cases to verify the differences.