Fix the karma tests

I have honestly no idea what I'm doing here, just fixing the test failure. There might be a way better way to fix it.

@tardyp: Is it the way to fix that ? Is the ``1`` always ``1`` ?