add test summary and fix bug where failures were ignored