Add more tests for subinterpreters. This patch also fixes a few small defects in the channel implementation.