added test cases for custom request object