refactor: reduce duplication in links_test
refactor: reduce duplication in links_test

alban/scope,weaveworks/scope,weaveworks/scope,alban/scope,kinvolk/scope,kinvolk/scope,kinvolk/scope,weaveworks/scope,alban/scope,kinvolk/scope,alban/scope,weaveworks/scope,kinvolk/scope,alban/scope,weaveworks/scope,alban/scope,weaveworks/scope,kinvolk/scope