Improve error messages in distro tests