fix the spy test on coap