Fix failing tests

We're using a script which won't be evaluated via a non-JS test driver.

/cc: @exalted