Speed up tests

those tiny changes make karma run 50% faster