Move Foo to models file and add objects attribute
Add test case for CacheManager