chore(test): change directory before remove temporary directory