updated tests, puts is now mocked

Note: if pypi is down, tests will fail