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