logic tests