adding a test for exists method