#267 finish factoring out petl.test.transform