Tests: Added tests for hypothetical problem described in #12546.