TDD code with karma in auto run mode