Add tests for HTTP classes.

- Use filemagic for Content-Type decision