tests for request handler