Fixed broken rootPath
Fixed tests