Create an anonymous class to test the failure app

No need to have a named class inside the test.