LogEvent(string, map) and requested unit test

@dkorolev PTAL
Nit: I'd move ```Statistics.logEvent``` outside the ```try``` block if possible, to highlight that it does not throw anything.