added better cache tests and modified cache methods call