Fix the unit tests for requests