add cortex.json and update tests