Create format_event function and call it in statsd.rb and specs

Easier to update the tests
Refs: #5