BUG: runtests: make -t option work again

Fixes gh-3940