XCTests updated. tests run without lasting changes to the database. all tests pass with current code