todo to add support for functions with multiple definitions
test parsing of patterns to variable names