Fixed xor encryption test