test writing same schema twice