Add examples for transform_density
Add tests for transform_density