Test method for cookies integrity and some JavaDoc fix