split writer class from tester