Added test to return random result

Added test to return random result