Improve test for .with_needs
What does this MR do?
Does this MR meet the acceptance criteria?
Conformity
Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/65457
Edited by Kamil Trzciński (Back 2025-01-01)
Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/65457