`shorten_fname`: Add a unit test