fix #1343 by randomizing test key