Response is now truncated if it is too long. Updated test cases to test this. Maximum message length is stored in config.