write models test