Added NewInstanceServiceResolver tests.