added a test for MessageRouter. fixed a goroutine leak in another test.