fix the marshalling of schemas to not loose the name
Fix the test to correctly pass the IDs around.
Added assertions relating to the schema name