fixing test data function for shipping
creating a common method to display the messages