fix test options use -f instead of -d for file