Testing the os.path.expanduser() function