Tests: Add test for AUTOMOC_MOC_OPTIONS

Fixes: #23894
5 files changed