tests: put impure testing code into a file.