test twice and check idempotency