fixed unexpected exception from being thrown in TestController when accessing /error
updated decision to store response in cache to use a Predicate