Fixed crop error and add test_data_transformer