Make this work when the development env isn't set up. #3633.

Specifically, if the development database is clean, there won't be any
codes in it. This will result in an exception indicating that the test
setup failed. This commit ensures that some codes are loaded in the
development environment before exercising the cache.