update tests to support new #script-on #script-off format

@Hixie