Add unit tests for the join producer.