Adding Jasmine unit tests.