updated Jasmine tests