Refactored _find_tests_in_dir to improve code reuse with eggdiscovery
and test coverage.