minor logic bug in test console app