Changed mock modules to 'MagicMock's.