Add logical and test