add test for retval from definition