Modified tests to be able to run with python-libraclient as well as http requests