added some logic tests