fix tests: use `im.transform` directly when result is compared
with other transform operations.