test for Neuron,InputNeuron and fix bugs