use similar tests to python requests