bug2

Fix a bug when forwarding message
Create function for test data generating