You could just create a spy on the prototype function and check if the spy has been called.

This is the real intent of what you are testing, if *the `onImagesReplaced` has been called.