finish api tests
refactor: change MetadataTypeRegistry to interface
start mem impl tests and rename support class