Added qunit tests
Added qunit test file tests.js