diff --git a/installed-tests/scripts/testCommandLine.sh b/installed-tests/scripts/testCommandLine.sh
index c9299ab..95c5535 100755
--- a/installed-tests/scripts/testCommandLine.sh
+++ b/installed-tests/scripts/testCommandLine.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-if test $GJS_USE_UNINSTALLED_FILES -eq 1; then
+if test "$GJS_USE_UNINSTALLED_FILES" = "1"; then
     gjs="$TOP_BUILDDIR"/gjs-console
 else
     gjs=gjs-console
diff --git a/installed-tests/scripts/testWarnings.sh b/installed-tests/scripts/testWarnings.sh
index 1cb1dc3..6ed2dbe 100755
--- a/installed-tests/scripts/testWarnings.sh
+++ b/installed-tests/scripts/testWarnings.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-if test $GJS_USE_UNINSTALLED_FILES -eq 1; then
+if test "$GJS_USE_UNINSTALLED_FILES" = "1"; then
     gjs="$TOP_BUILDDIR"/gjs-console
 else
     gjs=gjs-console
