created test case for logging randomized input and output result