added tests for forward propagation and backpropagation