Add `Client_main.find_master_loop`
Attempt to make master lookup in some unit tests more resilient
Merge pull request #496 from Incubaid/unit-test-master-lookup-resilience

Enhance unit test master lookup resilience