Add tests around MessageWriter#Write
Remove unused buffer
Remove dead code
Extract and test SendMessage method
Use function to create new reader
Intn is not inclusive