Format unit test to be compliant with jshint rules