add some unit tests for eventService (and fixed broken test from loginService)