Add test for has_many