Refactoring PHPUnit tests and configuration process