[TEST] Give tests for ctx._ttl more leeway

Fixes #8500
[TEST] add more debug output when engine / store are closed