rearrange Transformer
add test for Transformer.append