Fix grunt karma

All unit tests should be passing now (checked only with PhantomJS and Firefox).