added async unit testing and spyOn to watch a method