refactor requests integration test