add test with two tables