Provide a retry mechanism for the slightly unstable tests

Certain tests will fail a minor percentage of the time. A retry
feature will help with the sporadic failures.