removed unused code and better runtests script