set error_reporting for tests