Fix wrong package location
Add option to return json or Requests response object
Add test_endpoint and test_get