Added test (length) for random_key function