Add PHPUnit tests
Merge pull request #1 from wagnert/master

Add PHPUnit tests