Add tests ignoreInitial
Extract the directory representation into its own object and make ignoreInitial work as expected.