tests for xor() pass