>what does this program "test" do
Comparisons and file type checking. You'll see it a bunch in shell scripts.