changed the hard-code node types with constants
added a test for searching for nodetypes