new: test_encoder_decoder_with_views