Fixes bug in processing 'runtests' mode.