Add test for the user cache