Improved logging for running tests