+ added unit tests for paths
+ bug fix in connecting paths