add tests for new feature where server always emits 'online' for registration