added test.sh for testing the new dup-checking functionality for vbatch.sh