FIxing Jasmine tests to fit new version