karma unit tests working