Finish tests for OR, add error checks for duplicate keys where IN should be used