Working Probabilistic Encoder test!