move formatter test to writer