test: check generation of partially merged branches

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>