Added a sanity test for random_n_string() function.