fix phpunit & clean directories for a fresh start

- coding standard fixes (psr-2)
- phpunit runs with phpunit.xml.dist in root directory
- add basetestcase
- remove non-working requirements for a fresh start