CS: added method visibility
Added phpunit dependency to composer.json
Tidy up of tests

- Fixed visibility for setUp() method.
- Make all tests extend DoctrineTestCase.
- Escaped backslash in namespace strings.