Fixing the jasmine tests