Unit tests for Function resolution