Fix javascript error when there are only a few lists
Use the dummy cache backend for tests