Improved PHPUnit test