testWrite() for storage class