Added tests for isDeleted Variable