Prepared a number of tests. Added two features: cacheFlushInterval and a setTimeout for maxAge.