Fixed issue about file path in unit test. Refs #8994.