Evaluation of flexible regression for non-unimodal hazard functions