Made the test less likely to fail intermittently
Added travis ci config