Refactoring a bit to make resetting the views be more explicit.
Fixing unit tests to work with Core Data.
Adding test of migration from v1 of data model to v2.