Exported CheckSourceFile.

Exported CheckSourceFile and added test case for missing file.