Return an error when an unexpected key is encountered
Add travis config