Translate test sources to JavaScript
Rename test sources
test: Clean up and make style consistent

Attempt to clean up some of the mess left as a result of the automatic
translation from CoffeeScript to JavaScript.