test checks and improve output