Fixed Jasmine unit tests.