Add more test case of *defer*
Fix http echo server bug