Write test check.sh