user and image models has_many belongs_to and tested