Improve SetKeyTest.