Add global function assigned to variable cross namespaces scenario with method calls.