add test for updating neural network with training data