added tests for xExists