fixed temp path for remote machines
added more tests