failing test in karma