Added qunit wrapper and relevant tests