it('should return infoObject if requested', () => {
            expect(isFunction(null, true))
                .toEqual({
                    type: 'Function',
                    required: false,