Added PHPUnit tests and travis-ci config