Evaluating the performance of a refrigerator by an external system using entanglement