locally passing angular unit test