Test if window.plugin works