Add tests and config option to turn off caching

This commit adds tests to verify the proper functioning of the caching
service's `_data` method, cleans up some tests, and adds a configuration
option to the application to disable caching entirely.