Updated unit tests to get services/context in consistent way

All tests now using TestHelpers to create service provider and/or context and/or scoped context services, unless there is a specific reason for the test not to do so. Tests that use this mechanism run isolated from each other and are quite resilient to internal refactoring. Also updated MigratorTest per issue #1050