updated testSendRequest