Add test for user doc filtering