Add debug output on test and .htaccess needed by apache