used __dirname for testdata setup