I'd rewrite the whole test as just:

``` html
<div class="test"><div id="box">Fail</div></div>
<script>
test(function () {
    assert_true(document.getElementById('box').translate);
});
</script>
```