added unit tests with qunit