test/path: add tests for concat_fnames()
Revert some unready changes.