Test case for request prepare callback.