Invert operation + simple test