Added more in-depth test case for function resolving