updated tests to check for request & response objects