add test for multiple-subpaths encoding/decoding