writing tests for RequestObject