Corrected expected test result.
Simplified default Block constructor.
Added FunctionDefinition.toReference.
Refactored FunctionService for better accessability from IDE.