Adding qunit
Added some unit tests
More tests
Merge pull request #5 from patik/unit-tests

Unit tests, closes #3