* test: Add tests for preference query functions * sync test changes --------- Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>