Add test logging for better diagnosis of failures on Travis-CI