Added repeat parameter to test app.

When trying to track down hard-to-reproduce problems, it can be mighty handy to repeat the unit tests automatically.