Added tests to logical operators

Exisitng tests pass when bitwise operators are used
Merge pull request #76 from unthunk/master

Added tests to logical operators