core: WIP unreadMessageCount
core: WIP testUnreadMessageCount