Fix wrong test, add a few more.
Complete resolve cache tests.