Fix caching error in test assertion so all database hit expectations are met.
Fix caching error in test assertion so all database hit expectations are met.

concentricsky/badgr-server,concentricsky/badgr-server