added use of process.chdir for working dir in test