Add integration test for #12459