adds more unit tests and fixes errors in the schema detected by those tests.