Use pair instead of shared_ptr of pair in test