Index: src/webservice/tests/StationsTest.php
===================================================================
--- src/webservice/tests/StationsTest.php	(revision b38cc03298dec5a29ccdad110e181c545968e4a6)
+++ src/webservice/tests/StationsTest.php	(revision 1e376487e79f3268499595a602e4c704176c054c)
@@ -29,4 +29,5 @@
 		$this->assertNotNull($this->_testconfig);
 		
+		require($testconfig["webserviceDirectory"] ."/inc/envsetup.php");
 		require_once($testconfig["webserviceDirectory"] ."/SiWeather/Webservice/WebserviceConfig.php");
 		
@@ -45,9 +46,5 @@
 	public function testStationRewrite()
 	{
-		$apiVersion = $this->_webserviceConfig->getConfig("webserviceApiVersion");
-		$this->assertInternalType('string', $apiVersion);
-		$this->assertTrue(!empty($apiVersion));
-
-		$stations = $this->query($apiVersion ."/stations");
+		$stations = $this->query("stations");
 
 		$this->assertInternalType("array", $stations);
@@ -56,7 +53,7 @@
 	
 	protected function query($url){
-		$baseUrl = $this->_webserviceConfig->getConfig("webserviceBaseUrl");
-		$this->assertInternalType('string', $baseUrl);
-		$this->assertTrue(!empty($baseUrl));
+		$baseUrl = $this->_webserviceConfig->webserviceBaseUrl();
+		$this->assertInternalType('string', $baseUrl, "baseUrl is not of type string: ". $baseUrl);
+		$this->assertTrue(!empty($baseUrl), "baseUrl is empty: ". $baseUrl);
 		$client = new GuzzleHttp\Client
 		(
@@ -68,12 +65,12 @@
 		);
 		$response = $client->get($url);
-		$this->assertNotNull($response);
-		$this->assertEquals($response->getStatusCode(), 200);
-		$this->assertEquals($response->getReasonPhrase(), "OK");
+		$this->assertNotNull($response, "Response is empty. Url: ". $baseUrl . $url);
+		$this->assertEquals($response->getStatusCode(), 200, "Status code != 200. Url: ". $baseUrl . $url);
+		$this->assertEquals($response->getReasonPhrase(), "OK", "Reason phrase not empty. Url: ". $baseUrl . $url);
 
 		$body = $response->getBody();
-		$this->assertTrue(!empty($body));
+		$this->assertTrue(!empty($body), "Response body is empty. Url: ". $baseUrl . $url);
 		$json = json_decode($body);
-		$this->assertNotNull($json);
+		$this->assertNotNull($json, "Json decode returned null. Url: ". $baseUrl . $url ."\nBody: ". $body);
 		return $json;
 	}
