Added logging in tests.
Added FunctionDefinition.returnType