Adds logon service.
Fixed failing tests.