Added idempotence test and integration test via Travis.