Testing a custom RESTful architecture style in AngularJS and Laravel