Added tests for boolean logic