fix breaking prepend_paths
enhance unit tests w.r.t. prepend_paths