use -f test instead of -e