changed setwd and test calls