Fix testing when compiled with --disable-afs-support