Added some qunit tests for some new functions