test: client_online emitted when necessary