Added unit test and code for TDTStorage

Added code for write and read method