change work inside temporary directory in get dataset dir test