fixed runtests errors