Reverted test_autoencoded.py to its original form

To fix in another pull request