Fix request helper test to set the mocked method