make Path class serializable

* add more multi-jvm tests in NamespaceSpec