Create a generic class to manage a repository.
Fix phpunit.xml.
Add ./tests to autoload path when use phpunit.