Index: src/webservice/tests/StationsTest.php
===================================================================
--- src/webservice/tests/StationsTest.php	(revision 69c8290d986bf7747eb3cd7e94832b36ce89fdcf)
+++ src/webservice/tests/StationsTest.php	(revision 02fbeb816a6fd00276fc6f4dfc1dd966ba3dc6d5)
@@ -19,4 +19,7 @@
 */
 
+/**
+	* @todo Reset database before this test is run
+	*/
 class StationsTest extends PHPUnit_Framework_TestCase
 {
@@ -52,4 +55,29 @@
 	}
 	
+	public function testRegisterStationUnprovenLocation()
+	{
+		$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
+		(
+			[
+				"base_uri" => $baseUrl,
+				"timeout" => 5.0,
+				"http_errors" => false,
+			]
+		);
+
+		// 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" => "Nice town", "email" => "test@example.org"]]
+		);
+		$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"], $json["message"]);
+	}
+
 	public function testRegisterStation()
 	{
@@ -61,5 +89,5 @@
 			[
 				"base_uri" => $baseUrl,
-				"timeout" => 2.0,
+				"timeout" => 5.0,
 				"http_errors" => false,
 			]
@@ -68,24 +96,18 @@
 		// 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" => "Nice town"]]
+			[ "json" => ["name" => "My Weather Station", "city" => "Clausthal-Zellerfeld", "longitude" => 10.28152, "latitude" => 51.8281, "email" => "test@example.org"]]
 		);
 		$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->assertEquals("success", $json["result"]);
 		$this->assertTrue(array_key_exists("uuid", $json));
-		$this->assertEquals("success", $json["result"]);
 		$this->assertTrue(!empty($json["uuid"]));
 
+		$stations = $this->query("stations");
+		$this->assertInternalType("array", $stations);
+		$this->assertEquals(1, count($stations));
+		$this->assertTrue(array_key_exists("uuid", $stations[0]));
+		$this->assertEquals($json["uuid"], $stations[0]["uuid"]);
 	}
 	
