move some testing into a separate python file