Unit tests for Usercache.