South African president's office says Nelson Mandela has been admitted to a hospital for tests.