Fix text/html decode
Add decode text/html and format test