Before I had a custom router that would call a function and return a response based off of a boolean value but i'd rather just use an unmodified rest controller. Basically if something goes wrong in a method I want to be able to send a failed response with a custom method i've named fail
Your get_test() method needs to return the response from $this->fail().
After() checks if the return value is an instance of Response and if not it will create one (in this case with a null value, since that is what you return now).