Added idempotence test