Fixed issues with file path in unit test. Refs #8994.