Unit tests for worker - master election