add spec helper for models.