improved unit tests with PHPUnit