Added tests around the  decorator and fixed bug with  when using angular mocks.