ensure that std::ref in expectation is not copied
removed commented-out code
fixed sequencing bug