Add cookie test

Change-Id: I8a59006db04c28cf9eddcfb255dbd2e45669be98