- refactor
- put script testing in its own file