add unit test for create_paths
fix remarks