bug fix in engine core test