Think of it this way:
UX design is like planning a journey. It’s about the whole experience.
Usability testing is like a road test. It checks if the journey works in real life.
UX design is about creating a positive overall experience for users. Usability testing focuses specifically on how easy and efficient it is for users to accomplish tasks on your site.