test namedtuple as return and apply arg