Fix resolve cache not creating the directory after clearing it.
Delete lurking files.
Implement list tests for the resolve cache.

Tweak existent tests.