Split MainTest#test_modify_key into two smaller tests.