Test code for Core Engine, written in Python