diff --git a/apachesolr_attachments.admin.inc b/apachesolr_attachments.admin.inc
index aa408b0..879c2a1 100644
--- a/apachesolr_attachments.admin.inc
+++ b/apachesolr_attachments.admin.inc
@@ -120,15 +120,36 @@ function apachesolr_attachments_index_action_form($form, &$form_state, $env_id)
   );
   $form['action']['delete'] = array(
     '#prefix' => '<div>',
+    '#suffix' => '</div>',
     '#type' => 'submit',
     '#value' => t('Delete the attachments from the index'),
     '#submit' => array('apachesolr_attachments_index_action_form_delete_submit'),
   );
+  $form['action']['extract'] = array(
+    '#prefix' => '<div>',
+    '#suffix' => '</div>',
+    '#type' => 'submit',
+    '#value' => t('Test your tika extraction'),
+    '#submit' => array('apachesolr_attachments_index_action_form_extraction_submit'),
+  );
   return $form;
 }
 
 /**
- * Submit handler for the Indexer actions form, delete button.
+ * Submit handler for the Indexer actions form, test button.
+ */
+function apachesolr_attachments_index_action_form_extraction_submit($form, &$form_state) {
+  $destination = array();
+  if (isset($_GET['destination'])) {
+    $destination = drupal_get_destination();
+    unset($_GET['destination']);
+  }
+  $env_id = $form_state['values']['env_id'];
+  $form_state['redirect'] = array('admin/config/search/apachesolr/attachments/test', array('query' => $destination));
+}
+
+/**
+ * Submit handler for the Indexer actions form, reset button.
  */
 function apachesolr_attachments_index_action_form_reset_submit($form, &$form_state) {
   $destination = array();
@@ -204,6 +225,25 @@ function apachesolr_attachments_confirm_submit($form, &$form_state) {
 }
 
 /**
+ * Function to test if our extracting with tika succeeds
+ */
+function apachesolr_attachments_test_tika_extraction() {
+  module_load_include('inc', 'apachesolr_attachments', 'apachesolr_attachments.index');
+  $file = new stdClass();
+  $file->uri = drupal_get_path('module', 'apachesolr_attachments') . '/tests/solr-word.pdf';
+  $file->filemime = 'text/pdf';
+  $text = apachesolr_attachments_get_attachment_text($file);
+  // Check if the text can be succesfully extracted
+  if (strpos($text, "This is a test of PDF and Word extraction in Solr")) {
+    drupal_set_message(t('Text can be succesfully extracted'));
+  }
+  else {
+    drupal_set_message(t('Text can not be succesfully extracted. Please check your settings'), 'error');
+  }
+  drupal_goto('admin/config/search/apachesolr/attachments');
+}
+
+/**
  * @see apachesolr_delete_index()
  */
 function apachesolr_attachments_delete_index() {
diff --git a/apachesolr_attachments.module b/apachesolr_attachments.module
index 567c8ef..93ac4cd 100644
--- a/apachesolr_attachments.module
+++ b/apachesolr_attachments.module
@@ -19,10 +19,9 @@ function apachesolr_attachments_menu() {
     'file' => 'apachesolr_attachments.admin.inc',
     'type' => MENU_LOCAL_TASK,
   );
-  $items['admin/config/search/apachesolr/attachments/confirm/reindex'] = array(
-    'title' => 'Reindex all files',
-    'page callback' => 'drupal_get_form',
-    'page arguments' => array('apachesolr_attachments_confirm', 6),
+  $items['admin/config/search/apachesolr/attachments/test'] = array(
+    'title' => 'Test tika extraction',
+    'page callback' => 'apachesolr_attachments_test_tika_extraction',
     'access arguments' => array('administer search'),
     'file' => 'apachesolr_attachments.admin.inc',
     'type' => MENU_CALLBACK,
diff --git a/tests/solr-word.pdf b/tests/solr-word.pdf
new file mode 100644
index 0000000..bd8b865
Binary files /dev/null and b/tests/solr-word.pdf differ
