fix specs for expand_paths