use writer for pretty printer
import tests