Expand test coverage of link_local_settings()
Refactor redundant code in link_local_settings()