added visitor cookie tracking and tests