:0: unknown test operator

I have gotten the script up to this point and it works fine a system but when i copy it to another unix server running solaris 9 as the original one , its gives an error './mon_fs.sh[18]: 0: unknown test operator' .
(see script bellow)

can the Gurus see to this as i am just a beginner with scripting.

------------------------------------------------------------------------

#!/bin/ksh
#se: Check to see if file systems are filling up
# Usage: Execute from crontab
# Dependencies: mon_fs.dat
# Outputs: unix-ops@alibaba.com
#*****************************************************
# The directory this script resides in
ADMINDIR=/opt/admin/scripts
# The next variable can be set for multiple addresses
# (i.e.ibroxy71@sunguru.com)
MAILADD=unix-ops@alibaba.com
#define the hostname of the server
SRVNM=`uname -n`
while read -r FS MAXCAP
do

CAPACITY=`df -k $FS | grep -v avail | awk {'print $5'} | awk -F% {'print $1'}`
if test $CAPACITY -gt $MAXCAP; then
mail $MAILADD <<EOF
From: $SRVNM
To: $MAILADD
Subject: File System on $SRVNM
$FS is at $CAPACITY% capacity on $SRVNM (Threshold is $MAXCAP%).
`date`
EOF
fi

done < $ADMINDIR/mon_fs.dat

exit 0
------------------------------------------------------------------------

#!/bin/ksh
#se: Check to see if file systems are filling up
# Usage: Execute from crontab
# Dependencies: mon_fs.dat
# Outputs: unix-ops@alibaba.com
#*****************************************************
# The directory this script resides in
ADMINDIR=/opt/admin/scripts
# The next variable can be set for multiple addresses
# (i.e.ibroxy71@sunguru.com)
MAILADD='unix-ops@alibaba.com'
#define the hostname of the server
SRVNM=$(uname -n)
while read -r FS MAXCAP
do

CAPACITY=$(df -k ${FS} | grep -v avail | awk {'print $5'} | awk -F'%' {'print $1'})
if [ "${CAPACITY}" -gt "${MAXCAP}" ]; then
mail "${MAILADD}" <<EOF
From: ${SRVNM}
To: ${MAILADD}
Subject: File System on ${SRVNM}
${FS} is at ${CAPACITY}% capacity on ${SRVNM} (Threshold is ${MAXCAP}%).
$(date)
EOF
fi

done < "${ADMINDIR}/mon_fs.dat"

exit 0

When i run the edited version posted by vgersh99 it gave an output bellow;
this is not acceptable:

./mon_fs.sh[18]: 46^J0^J0^J0^J74^J1^J0^J0^J1^J2^J59^J88^J18^J23^J58^J89^J59^J59^J59^J59: syntax error