Add travis configuration and fixup tests