adding tests for the exists API