Add tx vertex cache size regression test

(cherry pick of 04bba936ad9582a507401223136845eacf8c7160)