class writer test