Function tests in the diagnosis of chronic pancreatitis