Minor test reorg

- move CheckTest into its own file
- use Tempfile vs hardcoded name