LogEvent(string, map) and requested unit test

@dkorolev PTAL
But code is much easier to read when you see all member variables first before methods which are using it.