Improve random string generator spec