Added tests for core.Function