cover all braches in this factory test