added tests and a bugfix
added Path::root() added unttests