Hi this is api js, you should not expect the output element is on page. 

Actually, I do like the idea putting testing support code in _api.js. Mainly because this _api.js will be evaluated in render when needed, so the bigger and complex this file is, the more time that JS engine cost.

include @tmpsantos for this discussion.