Fix error in runtest.R
Remove superfluous code in util.R