gradient seems to be fine both for stackedAE and feedForward. Learning on test data is working