Add QUnit and an example integration test