Have you tested this with 2+ directories, or just with one?  I think this line will likely break, but even if it doesn't, it's safer with quotes (ie, `if [ -z "$TESTDIRS" ]; then`).