implemented feature and tests for retrieval of all chats and chats by track