Migration test for AtomicReference