Converting previous qunit tests to jasmine tests.