test: add module diagnostic coverage (#10954)