#95 - tests for cookie feature

A test for the cookies feature. Fixes #95.