Testing jQuery plugin functionality