add unit test to check xor32 implementation