Actually make the previous test test

Also add another test, and a function runScript to make testing easier.