Add tests that expose bug #28.
Saner implementation of existsHelper.