Added a test for the tanh layer.