cleanup in runtest.R