Corrected karma usage, now beforeEach(inject(...)) works