verify that relations work between multiple tables