Remove trailing whitespaces
Fix enmasse tests for broken .js file
Simplify method test for syntax error