Unit tests for CachingFactor and some experiments