tests added for jQuery plugin and bugs exposed