Fixed tests broken by changed hamcrest's position on classpath during
the migration to ant.
Added name checking for Pipeline, and special <root> name for root