Update run-tests.sh

Better public key check