Add structure for cache tests
Add test for commit invalidating cache
Change order of arguments to assertEquals

The correct order is expected, real