factor out test boilerplate to a module
rm test boilerplate