add test for has_and_belongs_to_many association