fixed bug in request, added request unit tests