Randomized unit testing for R