add failing test
NULLify the client pointer after cancelling the request
fix #61 (merge branch 'kazuho/issues/61')