added missing return keyword to several methods of InMemoryBasicEnvironment