Updated tests to correctly handle spaces in both local and remote
path.