Fixes TestNodeRegistry master selection issue.