Fix Int and Long key casting test failure