Use autospec=True for mock objects