Test of sparse autoencoder