add write to disk test