diff --git a/Makefile.am b/Makefile.am
index 8b9c364ace05af5c6328ad84e0287db43a4c2d9a..43e40031b8cd5fb1b55b6df187665984853ad1b2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -46,6 +46,7 @@ test_cases = \
 	tests/extensions/body/match-values.svtest \
 	tests/extensions/regex/basic.svtest \
 	tests/extensions/regex/errors.svtest \
+	tests/extensions/reject/execute.svtest \
 	tests/extensions/relational/basic.svtest \
 	tests/extensions/relational/rfc.svtest \
 	tests/extensions/relational/errors.svtest \
diff --git a/tests/extensions/reject/execute.svtest b/tests/extensions/reject/execute.svtest
new file mode 100644
index 0000000000000000000000000000000000000000..e80fe1e27f46e4021d4c2e2420751395e1e5a1db
--- /dev/null
+++ b/tests/extensions/reject/execute.svtest
@@ -0,0 +1,11 @@
+require "vnd.dovecot.testsuite";
+
+test "Execute" {
+	if not test_compile "execute/basic.sieve" {
+		test_fail "compile failed";
+	}
+
+	if not test_execute {
+		test_fail "execute failed";
+	}
+}
diff --git a/sieve/tests/reject.sieve b/tests/extensions/reject/execute/basic.sieve
similarity index 100%
rename from sieve/tests/reject.sieve
rename to tests/extensions/reject/execute/basic.sieve