Add regression test to check for trailing '/' problem