Tests renaming a bundle.
function testRenameBundle() {
  $type2 = strtolower($this
    ->randomName(8)) . '_test';
  $options = array(
    'type' => $type2,
  );
  $this
    ->drupalPost('admin/structure/types/manage/' . $this->type, $options, t('Save content type'));
  $this
    ->manageFieldsPage($type2);
}