diff --git a/substrate/frame/support/test/tests/construct_runtime_ui/default_module_invalid_arg.rs b/substrate/frame/support/test/tests/construct_runtime_ui/default_module_invalid_arg.rs
new file mode 100644
index 0000000000000000000000000000000000000000..92a5ffff73f3ccf4232d59aa2adcfaa168d4871b
--- /dev/null
+++ b/substrate/frame/support/test/tests/construct_runtime_ui/default_module_invalid_arg.rs
@@ -0,0 +1,14 @@
+use frame_support::construct_runtime;
+
+construct_runtime! {
+	pub enum Runtime where
+		Block = Block,
+		NodeBlock = Block,
+		UncheckedExtrinsic = UncheckedExtrinsic
+	{
+		System: system,
+		Balance: balances::{default, Error},
+	}
+}
+
+fn main() {}
diff --git a/substrate/frame/support/test/tests/construct_runtime_ui/default_module_invalid_arg.stderr b/substrate/frame/support/test/tests/construct_runtime_ui/default_module_invalid_arg.stderr
new file mode 100644
index 0000000000000000000000000000000000000000..d4a46a3491027f06765d3995d1a697944894d8ef
--- /dev/null
+++ b/substrate/frame/support/test/tests/construct_runtime_ui/default_module_invalid_arg.stderr
@@ -0,0 +1,5 @@
+error: Only the following modules are allowed: `Module`, `Call`, `Storage`, `Event`, `Config`, `Origin`, `Inherent`, `ValidateUnsigned`
+  --> $DIR/default_module_invalid_arg.rs:10:32
+   |
+10 |         Balance: balances::{default, Error},
+   |                                      ^^^^^
diff --git a/substrate/frame/support/test/tests/construct_runtime_ui/invalid_module_entry.rs b/substrate/frame/support/test/tests/construct_runtime_ui/invalid_module_entry.rs
new file mode 100644
index 0000000000000000000000000000000000000000..db1250cdf4d6e78b5e40fd19a466a95f0169f6d7
--- /dev/null
+++ b/substrate/frame/support/test/tests/construct_runtime_ui/invalid_module_entry.rs
@@ -0,0 +1,14 @@
+use frame_support::construct_runtime;
+
+construct_runtime! {
+	pub enum Runtime where
+		Block = Block,
+		NodeBlock = Block,
+		UncheckedExtrinsic = UncheckedExtrinsic
+	{
+		System: system,
+		Balance: balances::{Error},
+	}
+}
+
+fn main() {}
diff --git a/substrate/frame/support/test/tests/construct_runtime_ui/invalid_module_entry.stderr b/substrate/frame/support/test/tests/construct_runtime_ui/invalid_module_entry.stderr
new file mode 100644
index 0000000000000000000000000000000000000000..da38a82d7e2b06736f6f8c44331fa214fa8996f1
--- /dev/null
+++ b/substrate/frame/support/test/tests/construct_runtime_ui/invalid_module_entry.stderr
@@ -0,0 +1,5 @@
+error: Only the following modules are allowed: `Module`, `Call`, `Storage`, `Event`, `Config`, `Origin`, `Inherent`, `ValidateUnsigned`
+  --> $DIR/invalid_module_entry.rs:10:23
+   |
+10 |         Balance: balances::{Error},
+   |                             ^^^^^