Fixed #21206.

No longer run discovery if the test label doesn't point to a package
or directory.
Added additional discover runner tests.