Fixed tanh derivative and added a test case for it