Header, cookie, and form parameters should be optional

Unittests fixed