Added test cases for all scenarios in request handler.
Merge pull request #1 from Codesleuth/improve-test-coverage-for-request-handler

Added test cases for all scenarios in request handler.