fixed problem if one sample reuse of gmock library