Improve test.sh to add support for testing individual files.