Improve error reporting on depth < 18 requirement in unit tests