Added jasmine unit tests.