Added a test.

This seems to be a problem in production right now, but I can't repeat
it in test. Maybe a memcache problem?