fix old specs for has_many
fix bug when creating a model with has_many elements from a sub class