Add cookie parameter in test_class

In order to extend the TestClass in core we have added the cookie
parameter in order to make the same calls in core using cookie