Bugfix for failed PHPUnit test