basic test for every id in a relation table