runtests: check arguments