fix test-runner to get "logic flaw" error correctly