tdd from angularjs