[TEST] Give tests for ctx._ttl more leeway

Fixes #8500