tests: Use tmp dir for test npy data.