mock window object angular unit test