Added test class for random string