TST Test writing & reading of metadata