Added qunit tests (incomplete).