updated test for contentType and enconding being set in both constructors