add input parameters validation
refactor inflection tests