Do refactoring for PathStore testing class