move some useful test methods to their own file for inclusion elsewhere