tools/test.sh: test suite for tools