Beautify test.main.js

Cleans up the test file to be more easily readable.