Test for Transforms.

Fix #292.
barycentre