Implement unit testing filter for dropping a percentage of messages.

This will be used in unit tests to trigger resend requests.