Fix mock import in tests