add tests coverage for an oslo.messaging use case

This change adds tests to checks the behavior when an
option in two groups shares the same deprecated group.

oslo.messaging usage: https://review.openstack.org/#/c/120038/

Change-Id: I47b4fae15bc6f4581b513e9c10a564f4f4a88e2f