CoreEngine with test code