added assertions of the used count of joined table.