[test_classes] add full test of read_metadata