diff --git a/tests/scripts/test020-proxycache b/tests/scripts/test020-proxycache
index ddd294e9a436f30dc83e09b0fce5ea62755aa62b..7ad5bcea2e1a62a64fc4c0a4cf73c349b50b56d7 100755
--- a/tests/scripts/test020-proxycache
+++ b/tests/scripts/test020-proxycache
@@ -180,7 +180,7 @@ CACHED=`grep CACHEABLE $LOG2 | awk '{
 			printf "1" 
 	}'`
 
-if test $CACHEABILITY = $CACHED ; then
+if test "$CACHEABILITY" = "$CACHED" ; then
 	echo "Successfully verified cacheability"
 else 
 	echo "Error in verifying cacheability"
@@ -250,7 +250,7 @@ ANSWERED=`grep ANSWERABLE $LOG2 | awk '{
 
 test $KILLSERVERS != no && kill -HUP $KILLPIDS
 
-if test $ANSWERABILITY = $ANSWERED ; then
+if test "$ANSWERABILITY" = "$ANSWERED" ; then
 	echo "Successfully verified answerability"
 else 
 	echo "Error in verifying answerability"