Add qunit and split integration and unit tests