Bugfixing PHPUnit test