Added tests for where exists