fix phpunit test and travis