added test for response type (message, history)