Wait for channel joined before running tests

Signed-off-by: Julien Danjou <julien@danjou.info>