Fixed "dead" test assertions

Tests had "dead" assertions which were never tested. The code after
```` php
$this->setExpectedException('CFileException');
// any expression throwing exception
````
is not execured. There were 35 assertions before the commit. There are 39 assertions after the commit.

Tests with several "setExpectedException" should be split to work as expected.

I am sorry but "testSetOwner_001" and "testSetOwner_002" fail on my machine.