send message test passes after refactor