integration inifite limits fix

fixes #8171
This could go to test_basic.