Fixes overflow issue when listing tests.