make travis and phpunit work

Fixes #25 and #27 if green