Use tmpnam for test database