test writer that produces invalid Go code