adding unit tests for the request object

I was executing these using:

``./vendor/bin/codecept run``