Add resolver_file testcases, and fixed bug.