Adding some unit tests around upgrading messages and the hidden field.