Add cache getter and clearer.

It is best to avoid trying to mess with protected properties
as it leads to tightly coupled code. Adding a cache getter
helps with this. Similarly, a cache reset is also great to
have.
Prepare the tests properly.

Make sure that the enable property is always in its
original state. Additionally, make sure the cache is
reset for each test.