Testing the performance of the neural network