test only logical code