Tests with angularjs