Testing with random input