Added tests for the join node.
- Added condition in join node to handle tests and listeners if they are
  given as Pids instead of functions (ydb_join:138).