Tests and diagnosis of viral hepatitis B