Add configuration test before reloading in nginx