Cleanup reformatting json.
Add tests for transforms.