join working with test function