This was mentioned on:
https://github.com/ezsystems/ezpublish-community/pull/81

The problem is that Behat as a known limitation where what is important is the RegEx to fin the sentences, and the 
```
@Given
@When
@Then
```
are only for user readability.

So even that 
```
    /**
     * Opens homepage.
     *
     * @Given /^(?:|I )am on (?:|the )homepage$/
     * @When /^(?:|I )go to (?:|the )homepage$/
     */
    public function iAmOnHomepage()
    {
        $this->getSession()->visit($this->locatePath('/'));
    }
```
( https://github.com/Behat/MinkExtension/blob/2.0/src/Behat/MinkExtension/Context/MinkContext.php#L32 )

is defined only with ```@Given``` and ```@When``` the RegEx 
``` /^(?:|I )am on (?:|the )homepage$/```
will 'fetch' the sentence above
```Then I am on the homepage```

So it actually is doing an action and not an assertion as expected