my own angularjs testing code