Corrected Karma tests (migration to Jasmine 2.0 broke the API)