Initial draft for the unit test of "common/shared_cache.hpp".

unittest for "common/shared_cache.hpp", based on the advice from Loic Dachary.