Adding Junit test case for storage/write.