fix performance bug in tests

R=rsc
CC=re2-dev
http://codereview.appspot.com/1741052
2 files changed