Updated jasmine tests to fix errors