Added in gradient testing for the sparse autoencoder - going to move this to a unit test though