rdmd_test: Add test for issue 11983