Add invert, extend, pick and omit functions and their tests