add tests about random keys