kernel: Remove trailing spaces from messages
Improve tests, add some comments
Chan tests
Msg tests
Kernel tests