adds phpunit support for tests
adds manager tests