fix resource related models and add resource models and controllers specs