test for many-to-many associations using the specified joinTableName