Use windows api to expand path. Cleaned up tests