PHPUnit testing introduced

I think this could serve as a base for unit testing nicely.

First step to closing #56