Issue #3152001 by narendra.rajwar27, munish.kumar, daffie, snehalgaikwad: Replace the database queries with an entity queries in NodeAccessBaseTableTest