It depends a little on what exactly your code looks like, but:
window['test'] = new Test();
should generally do the trick. After that, any scripts in your page should be able to see "test" as a global variable, which is the same as being a property of the window object.