[TEST] Added test for #6256