croak if output test file already exists and cleanup related code
Major update to integrate Module::Plugable.