Added logic to test for complex type return and negotiation based on Accept header.