Including set and reset cookie methods

Adding ways to alter cookies to improve tests that depends on cookies.