make test: separate test discovery code

No match.