Correct a test problem where to_str is called on the mock in some rubies