Started adding QUnit tests
Fixed failing QUnit tests