Use QUnit setup functions
Fix a couple issues with the test and source for sortByScore()