added qunit tests