There's no test for the "ambiguous module lookup" warning, as I'd expect that to be incredibly fragile in the absence of a synthetic data set purely for testing, but I checked it interactively, and it gives clear ambiguity warnings when generating draft modulemd files for mariadb and graphite-web.
Pull-Request has been merged by ncoghlan