Tests fails when we merge branch with fast forward merge
Repository#merged_to_root_ref
now returns false because the branch we are using was merged using fast forwarding and since we are trying to solve the issue that automatically tags a branch as merged (https://gitlab.com/gitlab-org/gitlab-ce/issues/20708) when creating a new branch from master we need to check whether or not the branch has the same HEAD.