Exists()

Added exists function to the testcase