fix(tests): return correct karma error if any