fix tests to be compatible with the latest requests version