fix logicalAnd, logicalOr, logicalXor

logicalAnd/logicalOr/logicalXor functions doesn't work
in shortcut functions at Framework/Assert/Functions.php.

fixed this bug and added tests.

maybe this fix can merge old branches. (for 3.5, 3.6, 3.7)