Added test for DBN / Autoencoder compatibility for given network.