Added idempotence test + improved Travis config.