Add test using a random number and check length.