* tests: fix unix socket tests on darwin * tests: add test temp dir implementation for darwin and non darwin