randomized unit testing