Add tests to check migration of profiles