Make sure that none of your quotes are "curly quotes". You often end up with those when you copy code from a blog post or other Web page. What you've pasted directly above looks right, but try simply combining it all into one long string.
var test = "<Query><Where><Eq><FieldRef Name='Title' /><Value Type='Text'>Bob Tester</Value></Eq></Where></Query>";
M.