fixed unit tests for xor, added one for linear prediction