wrote model tests