Added verification that the file containing the test is indeed a file for regex verification.