Use error logs in test