improve the enginetest