Added checks on name and better NodeElementAccessorTest