Tests: stop the runner after finishing
Tests: remove unused file
Tests: use a whitelisted file delete in the runner test

- Enables cleanup on files added by the tests that aren't present in the template directory
- Also allows cleanup on the first run after a test failure (which otherwise must be done manually)
Tests: add file containing various test functions