WIP: wrote a failing test for 45109325

[#45109325]
Protect manually set licenses with manual flag

[Fixes #45109325]