added phpunit.xml
small refactoring