Moving shared messages to proper location.

Adding extra testing code.