Fix use of display().to_str in find_tests

Fix #1197