updated jasmine spec