add cortex tests