Of course test needs to be test with -d not -f. Also added the correct lookup path for test