Fix tests for MethodModeTest.