Added some jasmine tests.