added encapsulated test.  handle defined content-types properly