Refresh tests for documents
Should mark pinned documents as pinned
Fix filters being unnecessarily JSON-parsed
Test for filters