Bugfix for PHPUnit test