finalised unittest for short_cache add and get