added tmpdir in all unit tests