fix near cache problematic tests.