testing: make test use FileCheck

The "grep internal | count" was fragile when your source or remote paths could
contain the word "internal".