added testcase for xor example