Fix script tests

The test suite `script_valid.json` passes again

Also adds `script_invalid.json` file testing rejection of invalid scripts