test functionality with cookies