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