Convert tests over to qunit for unit testing