update s_test to make key random