Correct test and change param group order on intersectionWith

Signed-off-by: Gary Pamparà <gpampara@gmail.com>
Added additional functions and tests

Signed-off-by: Gary Pamparà <gpampara@gmail.com>