Angularjs tests