Improving error message for writelog tests