Add tests for cipher_migrate