Adds build test for has_many through and necessary attributes
Fixes break on build/create for has_many through in Rails 4.2