Added internal logic functions to TestEngine.h