using RS.WireClient.cleanPath in baseclient and fixing baseclient testsuite to be compatible with that