added shouldCache method to test classes and set data to default null instead of array in request handler