cleanup in the cookie class
fixing some coverage notation and added one edge case in the tests