change expectmessage to extractpayload, fix test potential bug