Test code 'Enumerating function'