test -e /dev/mapper/dev0 is exactly equivalent to [ -e /dev/mapper/dev0 ] the OP has tried. Any of them is the right command, so the problem must be elsewhere.
test -e /dev/mapper/dev0 is exactly equivalent to [ -e /dev/mapper/dev0 ] the OP has tried. Any of them is the right command, so the problem must be elsewhere.