Updated jasmine to 2.2 and fixed some tests.