save, add test for std::reference_wrapper