More Jasmine test improvements