a service for assertions in angularJS