Welcome, Ikia.
Adding a comma is a good repair strategy here,
Ex: The CD has been listened to, to make sure that it works.
But the sentence still stands awkward. The reason being, the subject here
to make sure... lacks a referent. Who made sure?

Its referent is missing. It's normally found in the main clause, but our main clause is in passive voice and the subject of that clause is unstated. The result, the subject of the second clause lacks a referent. Consider,
Ex: In order to/that we make sure the CD works, we have to listen to it.
Ex: We have to listen to the CD in order to/that we make sure it
works.
All the best
