Reactivated unittests in cache.cpp and log.cpp