Cleaned up tests a bit and integrated promise-http-client instead of using the old HTTP client