Only output printed to stderr is relayed to the client. So the following change should make your test hook work:
echo "this is a test" >&2
exit 1
For reference, here's the relevant quote from the Subversion book:
"If the
pre-commit
hook program returns a nonzero exit value, the commit is aborted, the commit transaction is removed, and anything printed to stderr is marshalled back to the client."