Unit tests for userCache.
Deleted an unused variable.