test for multiple join inputs