Add tests for join, smax and smin