Test source file name in diagnostics