testing backend send message function returns message object instead of pk