Tests for `GeneratorEncoder`