add function approximate test using neural network