Fix the unit test failure caused by processing an invalid key.