Header, cookie, and form parameters should be optional

Unittest fixed