Add support for specifying extra test strings

In addition, the test strings list will now be cached, so the
program will run slightly faster.