add test for user online count
refactor user count