test: Add tests for closed issue #10764

Closes #10764