get_paths: expand and improve tests