Test for Request object; Fixed a couple of bugs