Fixed send message method test and added relevant comments