Update test-functions.sh