join table and test data