Add auto tests for resolving file path.