Added http client for tests

To avoid the use of an TestClient class, you should use PHPUnit Test Doubles : https://phpunit.de/manual/current/en/test-doubles.html