Index: src/webservice/tests/StationsTest.php
===================================================================
--- src/webservice/tests/StationsTest.php	(revision b858e6f6273177f7d332d702b6bba8ec3f9cdc60)
+++ src/webservice/tests/StationsTest.php	(revision 519df6e4d06375cf69d39c97a1268e926c826060)
@@ -65,9 +65,27 @@
 			]
 		);
+
+		// sending must failing register request, caused by unproven location
 		$response = $client->post("index.php/stations/register",
-			[ "json" => ["name" => "Cool Station", "longitude" => 23.2, "latitude" => 90, "city" => "Krefeld"]]
+			[ "json" => ["name" => "Cool Station", "longitude" => 23.2, "latitude" => 90, "city" => "Nice town"]]
 		);
-		echo $response->getStatusCode();
-		echo $response->getBody();
+		$this->assertEquals($response->getStatusCode(), 200, $response->getReasonPhrase());
+		$json = json_decode($response->getBody(), true);
+		$this->assertTrue(array_key_exists("result", $json));
+		$this->assertTrue(array_key_exists("message", $json));
+		$this->assertEquals("unprovenlocation", $json["result"]);
+		
+		// try again with set "locationchecked" to true
+		$response = $client->post("index.php/stations/register",
+			[ "json" => ["name" => "Cool Station", "longitude" => 23.2,
+									 "latitude" => 90, "city" => "Nice town", "locationchecked" => true]]
+		);
+		$this->assertEquals($response->getStatusCode(), 200, $response->getReasonPhrase());
+		$json = json_decode($response->getBody(), true);
+		$this->assertTrue(array_key_exists("result", $json));
+		$this->assertTrue(array_key_exists("uuid", $json));
+		$this->assertEquals("success", $json["result"]);
+		$this->assertTrue(!empty($json["uuid"]));
+
 	}
 	
@@ -91,5 +109,5 @@
 		$body = $response->getBody();
 		$this->assertTrue(!empty($body), "Response body is empty. Url: ". $baseUrl . $url);
-		$json = json_decode($body);
+		$json = json_decode($body, true);
 		$this->assertNotNull($json, "Json decode returned null. Url: ". $baseUrl . $url ."\nBody: ". $body);
 		return $json;
