Added tests for JobDefiniton and FunctionDefinition