Add. tests for `path.extension` function.
Update doc [ci skip]