XOR helper function unit tests added