Add test on retrieve object from cache