beginning of logic tests