Added unit test for Request, and fixed bug with adding to the request typemap using wrong key.