fix(engine/test): condition on history level

related to CAM-2544