Fixed incorrect test for exists