Add config for TravisCI
Fix parseAuthChallenge and add test