Fixed content-type register and added test.

Good to have this fixed!