backport HashWithIndifferentAccess#reject tests

this back port the reject test from https://github.com/rails/rails/commit/921ec9b5c6e92b5992de4bd898532be878ee5a36#diff-c5e8b13afcecaf67badb95d97f9e860cR479