Test for storing file