Moved mock tests to use patch.