(PDB-555) Add test for nodes queries