improve the error output of the duplicate module test in the case that modules are missing