Added more test for invert

Still not finished though.