fix minor compile error

I reverted to using local type testInfo as it make the code a bit clear.