Added a new test, now jshint qunit files

The qUnit tests where not being checked by qUnit, now they are. Lots of
changes to get the tests to pass jsHint.