public function testGetMyEntities($session_token)
{
$res = $this->doHttpRequest('GET', 'getMyEntities/', ['headers' => ['Session-Token' => $session_token]]);
$this->assertNotEquals(null, $res, $this->last_error);
$this->assertEquals(200, $res->getStatusCode());
$body = $res->getBody();
$data = json_decode($body, true);
$this->assertNotEquals(false, $data);
$this->assertArrayHasKey('myentities', $data);
// check presence of first entity
$this->assertArrayHasKey('id', $data['myentities'][0]);
// check presence of first entity
$this->assertEquals(0, $data['myentities'][0]['id']);
// check presence of root entity
}