Adding basic PHPunit tests

checking PHP syntax
Increase testability of PHP code