Fix test method scope.