Improved logging of tests