Fixed bug with PHPUnit test