added "text" object, some fixes in path, added test for isRTL