Add Travis CI settings
Fix unit test compile error