add unittests for cortex test; fix Object.create for old browsers