fix typo in field name in as_string method
replace test metadata and provide a test identity assertion