fixed some tests, investigated shutting down engines to stop core dumps