added test for regression in Decoder