Add test for hashCode of config class.