Added paremeter user to MockHttpRequest. Added tests for http module.