added unit test for function matching; probably last new set of unit functions needed