Added logical tests for && and ||