On the estimation of the function and its derivatives in nonparametric regression: A bayesian testimation approach