Cleaner tests: testResult
Moved function to testOR
Added AND and XOR tests