Added QUnit tests.
Merge pull request #13 from rojakcoder/master

Added QUnit tests.