Adding tests for leader and some log