Changed container.resolve to the more container.lookupFactory when
looking up view class, also removed deprecation flag for test that
didn't need it.