add test on formatting slash-only pathname