UPDATED jasmine tests.