added travis file and refactored phpunit