Split test boilerplate out into separate files.