pulling out a method into a test helper class