AngularJS test for TinyPass