test case removeLeadingSlash method.