added a test for the exists function