test for idempotent migration