Fix test file and add config for travis CI.