Add cookies into request

Added the method for attaching a cookie into a request and the corresponding test