Fixed up some line breaks in random_data and added tests