Write Test for data storage