ex-126 (jebene/kmeng): fixed functional tests (consensus and merge)