In this case, I don't think using a class variable makes 100% sense.

Instead, you could have the caller keep track of the MovieLibrary and help simplify this code and your tests.