Test for write files locally