Adding credentials to travis and fixing tests