add primary autoencoder and its test