AngularJS: Added unit tests