migrate for latest cortex-test