MDL-41389 auth_db: added unit tests for events