update qunit definition

Tests added. Resolved some bugs.
Merge pull request #206 from Diullei/master

Update QUnit definition
Merge remote-tracking branch 'upstream/master'