Fixed tests, this line was causing the bug:
var tar = $('myButton');
Now adding a button to document when document.ready gets run.