I've just started learning how to use
git pull just merges the fetched commits in your working directory and will not restore your deleted directory ( but might warn you about conflicts.)
If you have deleted the folders in your working directory, you have to do:
git checkout -- test
to get it back.
Or you can do
git reset --hard to completely bring your working directory to HEAD state.