adding phpunit tests and .travis ci