Improve the Jasmine test coverage