Updated dmem_tb to include reading after writing